package Cafezam;

import java.util.Scanner;

public class J09Account {
	public static void main(String[] args)
	{

		int aid[] = new int[2];
		int balance[] = new int[2];
		double interestRate[] = new double[2];
		String dateCreated[]=new String[2];
		double getMonthlyInterestRate[]=new double[2];
		int withDraw[] = new int[2];
		int deposit[] = new int[2];
		
		inputAccount(aid,balance, getMonthlyInterestRate, dateCreated, deposit, withDraw);
		getMonthlyInterest(getMonthlyInterestRate, getMonthlyInterestRate);
		withDraw(balance, withDraw);
		deposit(balance, deposit);
		System.out.println(aid[1]);
		System.out.println(interestRate[1]);
		System.out.println(dateCreated[1]);
		System.out.println(deposit[1]);
		System.out.println(withDraw[1]);
		System.out.println(balance[1]);

		
	}//main
	public static void inputAccount(int aid[],int[] balance,double interestRate[],String dateCreated[],int deposit[],int withDraw[])
	{
		Scanner sc=new Scanner(System.in);
		System.out.println("계좌번호는?");
		aid[1]=sc.nextInt();
		System.out.println("잔액");
		balance[1]=sc.nextInt();		
		System.out.println("연간 이자율");
		interestRate[1]=sc.nextDouble();
		System.out.println("통장개설일은");
		dateCreated[1]=sc.next();
		System.out.println("입금액은");
		deposit[1]=sc.nextInt();
		System.out.println("인출액은?");
		withDraw[1]=sc.nextInt();
		
	}
	public static void getMonthlyInterest(double getMonthlyInterestRate[],double interestRate[])
	{
		getMonthlyInterestRate[1]=interestRate[1] / 12;
		
		
	}//monthly
	
	public static void withDraw(int balance[],int withDraw[])
	{
		balance[1] = balance[1] - withDraw[1];
	}//withdraw
	
	public static void deposit(int balance[],int deposit[])
	{
		balance[1] = balance[1] + deposit[1];
	}

}
